import { post, get, put, Delete, form } from "@/axios/http.js";
import { basicApi } from "@/api/index.js"
// 评论
export default {
    namespaced: true,
    state: {},
    actions: {
        // 相册-文章-试卷-收藏/取消收藏
        collectAdd({ commit },params){
            return post(basicApi.collect.collectAdd, params).then(res=>{
                return res
            });
        },
        // 收藏删除-可批量
        collectDel({ commit },params){
            return Delete(basicApi.collect.collectDel, params).then(res=>{
                return res
            });
        },
        // 分页查询收藏列表-此时id为文章、相册id,试卷
        collectPage({ commit },params){
            return post(basicApi.collect.collectPage, params).then(res=>{
                return res
            });
        },
    },
    mutations: {},
};
